package cn.hiapi.user.query;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.jpa.query.BasicQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author AdinZ
 * @date 2023/1/2 21:03
 */
@Setter
@Getter
public class MyActivityOrderQuery extends BasicQuery {
    private Integer status;

    @ApiModelProperty("买家id")
    private long buyerId;
    @Override
    public QueryWrapper getQueryWrapper() {
        QueryWrapper wrapper = super.getBasicQueryWrapper();
        wrapper.eq("status", status);
        wrapper.eq("buyerId", buyerId);
        return wrapper;
    }
}
